<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>index</title>
    </head>
    <body>
        <!--这里请求的完整路径 http://localhost:8080/monster/100/king-->
        <a href="/monster/100/king">@PathVariable-路径变量 monster/100/king</a><br/>
        <a href="/requestHeader">@RequestHeader-获取Http请求头</a><br/>
        <a href="/requestParameter?name=fruits&fruit=apple&fruit=pear&id=300&address=北京">@RequestParameter-获取Http请求头</a><br/>
        <a href="/cookie">@CookieValue-获取cookie值</a><br/>
        <hr/>
        <h1>测试@RequestBody获取数据：获取POST请求体</h1>
        <form action="/save" method="post">
            姓名：<input name="name"/><br/>
            年龄：<input name="age"/><br/>
            <input type="submit" value="提交">
        </form>
        <hr/>
        <a href="/request">@RequestAttribute-获取Request域对象的属性</a><br/>
        <a href="/session">@SessionAttribute-获取Session域对象的属性</a><br/>
        <a href="/register">测试Map和Model中的k-v数据会带入到Request域对象中</a>
    </body>
</html>